home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Topik / Topik - Disk 24 - Productivity (19xx)(Topik Public Domain)(PD)[WB].zip / Topik - Disk 24 - Productivity (19xx)(Topik Public Domain)(PD)[WB].adf / Calendar / month.h < prev    next >
C/C++ Source or Header  |  1990-01-31  |  1KB  |  80 lines

  1. #define AMIGA 1
  2.  
  3. #include <stdio.h>
  4.  
  5. #define COLS 77
  6. #define LINES 23
  7.  
  8. #ifdef AMIGA
  9. #define UP_ARROW '\xc1'
  10. #define DN_ARROW '\xc2'
  11. #define RT_ARROW '\xc3'
  12. #define LF_ARROW '\xc4'
  13. #endif
  14.  
  15. #define TOP_MONTH_ROW 3
  16. #define YEAR_ROW 16
  17. #define YEAR_COL 12
  18. #ifdef AMIGA
  19. #define TIME_ROW 19
  20. #define DURATION_ROW 20
  21. #define DESCRIPTION_ROW 21
  22. #define ACCEPT_ROW 22
  23. #else
  24. #define TIME_ROW 20
  25. #define DURATION_ROW 21
  26. #define DESCRIPTION_ROW 22
  27. #define ACCEPT_ROW 23
  28. #endif
  29. #define LAST_YEAR_COL 75
  30. #define DATE_COL 0
  31. #define MONTHLY_COL 15
  32. #define YEARLY_COL 23
  33. #define EVERY_COL 30
  34. #define NTH_COL 36
  35. #define LAST_COL 41
  36. #define SMTWTFS_COL 46
  37. #define TIME_COL 11
  38. #define MINUTE_COL 14
  39. #define ACCEPT_COL 11
  40. #define CANCEL_COL 18
  41. #define SMONTH_COL 0
  42. #define SDAY_COL 3
  43. #define SYEAR_COL 6
  44.  
  45. #define MONTHS 0
  46. #define YEARS 1
  47. #define DAYS 2
  48. #define SCHEDULE 3
  49.  
  50. #define MAX_DAILY_EVENTS 50
  51.  
  52. #define MAX_EVENT_STRING_LENGTH 70
  53.  
  54. #define NOTHING 0
  55. #define ACCEPT 1
  56. #define CANCEL 2
  57.  
  58. struct event_rec {
  59.         char event_month;
  60.         char event_day;
  61.         short event_year;
  62.         char monthly;
  63.         char yearly;
  64.         char every;
  65.         char smtwtfs[7];
  66.         char nth, last;
  67.         char nth_is_on;
  68.         char hour;
  69.         char minute;
  70.         char duration_hours;
  71.         char duration_minutes;
  72.         char event_string[MAX_EVENT_STRING_LENGTH];
  73.         struct event_rec *next_event;
  74. };
  75.  
  76. struct mdate {
  77.         short month;
  78.         short year;
  79. };
  80.